Code
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Span Demo</title> <style> .HundredPercentCharged { color: blue; } .LessThanTenPercentCharged { color: red; } </style> </head> <body> Your battery is <span class="HundredPercentCharged">100% charged</span> <br /> Your battery is <span class="LessThanTenPercentCharged">10% charged</span> </body> </html>
Output